package ProcessingAudioWindows;

import java.awt.BorderLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JCheckBox;

public class F2AudioProcessingWindow extends AudioProcessingWindow {

    private JCheckBox chckbxNewCheckBox;
    private JCheckBox chckbxPokaKolejneEtapy;

    /**
     * Create the application.
     * @wbp.parser.constructor
     */
    public F2AudioProcessingWindow() {
        super();
        initialize();
    }
    
    public F2AudioProcessingWindow(int x, int y) {
        super(x, y);
        initialize();
    }

    /**
     * Initialize the contents of the frame.
     */
    private void initialize() {   
        frame = new JFrame();
        frame.setBounds( 100, 100, 215, 170 );
        
        JButton btnOk = new JButton("Ok");
        btnOk.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                frame.setVisible( false );
            }
        });
        frame.getContentPane().add(btnOk, BorderLayout.SOUTH);
        
        JPanel panel = new JPanel();
        frame.getContentPane().add(panel, BorderLayout.CENTER);
        
        chckbxNewCheckBox = new JCheckBox("Wykryj tony");
        panel.add(chckbxNewCheckBox);
        
        chckbxPokaKolejneEtapy = new JCheckBox("Pokaż kolejne etapy");
        panel.add(chckbxPokaKolejneEtapy);
        
        frame.setLocation( x, y );
    }
    
    public boolean isShowSteps() {
        return chckbxPokaKolejneEtapy.isSelected();
    }
    
    public boolean isDetectNotes() {
        return chckbxNewCheckBox.isSelected();
    }


}
